#include<stdio.h>
int main(void)
{
int n,i,a,b,c,d,e,f;
scanf("%d%d%d%d",&a,&b,&c,&d);
e=a*c-b*d;
f=a*d+b*c;
if(f>=0)
printf("%d %d\n",e,f);
else  
printf("%d %di\n",e,f);
return 0;
}
